//
//  OSRecommentCategoriesTableViewCell.m
//  百思不得姐
//
//  Created by gl on 16/2/22.
//  Copyright © 2016年 CoderC. All rights reserved.
//

#import "OSRecommentCategoriesTableViewCell.h"
#import "OSRecommendCategory.h"

@interface OSRecommentCategoriesTableViewCell ()

@property (weak, nonatomic) IBOutlet UIView *selectView;


@end

@implementation OSRecommentCategoriesTableViewCell

- (void)awakeFromNib {
    // Initialization code
    
    self.backgroundColor = OSRGBColor(244, 244, 244);
    
    self.textLabel.textColor = OSRGBColor(84, 84, 84);
    
    self.textLabel.highlightedTextColor = OSRGBColor(219, 21, 26);
    self.textLabel.font = [UIFont systemFontOfSize:13];
    
}

-(void)setCategory:(OSRecommendCategory *)Category{
    _Category = Category;
    
    self.textLabel.text = Category.name;
    
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.textLabel.y = 2;
    self.textLabel.height = self.contentView.height - 2 * self.textLabel.y;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    
    self.selectView.hidden = !selected;
    
    self.textLabel.highlighted = selected;
}


@end
